<template>
  <div id="content" class="app-view-box">
    <keep-alive>
      <router-view />
    </keep-alive>
  </div>
</template>

<script>
import registerApps from '@/qiankun/index'
export default {
  name: 'MicroView',
  mounted () {
    console.log('mounted', window.qiankunStarted, 'window.qiankunStarted')

    // if (process.env.VUE_APP_QIANKUN === 'true') {
    if (!window.qiankunStarted) {
      window.qiankunStarted = true
      registerApps()
    }
  }
  // }
}
</script>

<style scoped>

</style>
